package com.monkey_pig.memoryalbum.utils;


import android.os.Bundle ;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;


/**
 * Created by Administrator on 2015/7/22.
 * update：160415 更改了继承的基类
 */
public class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState ) {
        super.onCreate(savedInstanceState);
//        远古的去标题方法
//        requestWindowFeature(Window.FEATURE_NO_TITLE);
//        V7支持包actionbaractivity的去标题
//        ActionBar actionbar = getSupportActionBar();
//        actionbar.hide();
//        最新的AppCompatActivity去标题
//        getSupportActionBar().hide();
        ActivityCollector. addActivity( this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy() ;
        ActivityCollector. removeActivity( this);
    }
}
